package com.dmpp.mes.service.impl;


import com.dmpp.mes.bean.ResponseData;
import com.dmpp.mes.dao.MaterialWarehouseMapper;
import com.dmpp.mes.dao.WIPMapper;
import com.dmpp.mes.parameterInfo.MaterialWarehouse;
import com.dmpp.mes.parameterInfo.WIP;
import com.dmpp.mes.service.MaterialWarehouseService;
import com.dmpp.mes.service.WIPService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service(value = "WIPService")

public class WIPServiceImpl implements WIPService {

    @Autowired
    private WIPMapper mapper;

    @Override
    public ResponseData findAll(WIP wip) {
        ResponseData responseData = new ResponseData();
        PageInfo pageInfo = new PageInfo<>(mapper.findAll(wip));
        responseData.setData(pageInfo);
        return responseData;
    }
}
